package com.powersystem.demo.mapper;

import com.powersystem.demo.entity.PsLogs;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author linrongji
 * @since 2019-11-14
 */
public interface PsLogsMapper extends BaseMapper<PsLogs> {
    @Select("select * from PS_LOGS where PS_ID =${id}")
    List<PsLogs> selectByUserId(@Param("id") int id);
    @Select("SELECT * FROM PS_LOGS WHERE ps_ID =  AND OPERATEDATETIME > ${firstTime}  AND OPERATEDATETIME < ${endTime}")
    List<PsLogs> selectByUserIdAndTime(@Param("id")int id,@Param("firstTime")String first,@Param("endTime")String endTime);
}
